package top.purity.server.tenant.service.convert;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import top.purity.server.tenant.domain.TenantMenu;
import top.purity.server.tenant.feign.output.dto.PermissionDTO;

import java.util.Collection;
import java.util.List;

/**
 * @ClassName TenantMenuConvert
 * @Description TODO
 * @Author huarujin
 * @Date 2024/11/20 23:55
 * @Version 1.0
 */

@Mapper
public interface TenantMenuConvert {

    TenantMenuConvert INSTANCE = Mappers.getMapper(TenantMenuConvert.class);

    List<PermissionDTO> convertToPermissionDtoList(Collection<TenantMenu> tenantMenus);

    PermissionDTO convertToPermissionDto(TenantMenu tenantMenu);

}
